﻿namespace KnownCMS.Admin.Pages.Interact;

[Route("/ims/replies")]
[Menu(AppAdmin.Interact, "回复管理", "message", 3)]
public class ImReplyList : BaseTablePage<CmReply>
{
    private IPostService Service;

    protected override async Task OnInitPageAsync()
    {
        await base.OnInitPageAsync();
        Service = await CreateServiceAsync<IPostService>();
        Table.OnQuery = Service.QueryRepliesAsync;
    }

    //public void DeleteM() => Table.DeleteM(Service.DeletePostsAsync);
    //public void Delete(CmPost row) => Table.Delete(Service.DeletePostsAsync, row);
    [Action] public Task Export() => Table.ExportDataAsync();
}